package com.zbb.exam_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zbbstart
 * @date 2021/2/15 - 17:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("exam")
@ApiModel(value = "考试对象", description = "封装了考试的各个属性后得到的一个实体对象")
public class Exam {
    @TableId(value = "examId", type = IdType.AUTO)
    @TableField("examId")
    @ApiModelProperty(name = "examId", value = "考试编号自增主键", example = "1")
    private Integer examId;

    @TableField("examNo")
    @ApiModelProperty(name = "examNo", value = "考试编号", example = "20210214001")
    private String examNo;

    /**
     * 0 未考 ， 1 ，过期，2 已考
     */
    @TableField("examStatus")
    @ApiModelProperty(name = "examStatus", value = "考试状态", example = "0 未考，1 ，过期，2 已考")
    private String examStatus;

    /**
     * 状态0 对应 - ，状态1 对应 - ，状态2 对应 实际所得的分数
     */
    @TableField("examScore")
    @ApiModelProperty(name = "examScore", value = "考试分数", example = "100")
    private String examScore;

    @TableField("studentNo")
    @ApiModelProperty(name = "studentNo", value = "当前考试的学院编号", example = "16")
    private int studentNo;

    @TableField("stu_answers")
    @ApiModelProperty(name = "stuAnswers", value = "学生回答的答案", example = "")
    private String stuAnswers;
}
